package com.juphoon.oauth.core.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ServerResponse {

    private Object data;


    public static ServerResponse ERROR(Object data) {
        return new ServerResponse(data);
    }

    public static ServerResponse ERROR() {
        return new ServerResponse();
    }

    public static ServerResponse SUCCESS(Object data) {
        return new ServerResponse(data);
    }

    public static ServerResponse SUCCESS() {
        return new ServerResponse();
    }
}
